package com.nec.recommend.module.weapp.entity;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nec.recommend.common.BaseEntity;
import com.nec.recommend.module.weapp.dto.WeappRecommendDTO;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("tb_weapp_recommend_record")
public class WeappRecommend extends BaseEntity {
    private Long userId;
    private String shareId;
    private String name;
    private Long receivedUserId;
    private String receivedName;
    private String recommendTime;

    public WeappRecommendDTO toDTO() {
        return BeanUtil.copyProperties(this, WeappRecommendDTO.class);
    }
}
